<template>
  <div class="all">
    <div class="main">
      <p class="top">新填区块</p>
      <div class="box">
        <p>
          名&emsp;&emsp;称：<input type="text" placeholder="请输入区块名称" />
        </p>
        <p>区块链接：<input type="text" placeholder="请输入区块链接路径" /></p>

        <p>
          &emsp;&emsp;&emsp;&emsp;&emsp;<input
            type="text"
            placeholder="选中跳转分类"
          />
        </p>
        <p><span class="one">区块链接优先跳转链接路径</span></p>
        <p>排&emsp;&emsp;序：<input type="text" placeholder="自定义排序" /></p>
        <p>图片地址：<input type="text" placeholder="可输入图片链接地址" /></p>
        <p>
          <input type="text" placeholder="+" /><span
            >轮播图尺寸大小：750*390</span
          >
        </p>
        <p>
          <i style="color: red">*</i>状&emsp;&emsp;态:
          <input type="radio" checked name="but" />启用
          <input type="radio" name="but" />禁用
        </p>
      </div>
      <p class="bot">
        <el-button type="success" icon="el-icon-check" size="mini" round  @click="setopen"
          >提交</el-button
        >
        <el-button type="info" icon="el-icon-close" size="mini" round @click="setopen"
          >取消</el-button
        >
      </p>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      open: true,
    };
  },
  methods: {
    setopen() {
      this.$emit('aaa')
    },
  },
};
</script>

<style lang="scss" scoped>
* {
  margin: 0;
  padding: 0;
}
.all {
  background-color: rgba(167, 166, 166, 0.5);
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 998;
}
.main {
  width: 400px;
  font-size: 12px;
  background-color: white;
  border: 1px solid gainsboro;
  position: absolute;
  z-index: 999;
  left: 35%;
  margin-left: -200px;
  // margin-top:2%;
  p {
    text-align: left;
    padding: 4px 20px;
    line-height: 40px;
    box-sizing: border-box;
    input {
      width: 80%;
    }
    &:nth-child(7) {
      input {
        width: 100px;
        height: 100px;
        border: 1px dashed grey;
        text-align: center;
        line-height: 100px;
        margin-left: 60px;
      }
    }
    &:nth-child(8) {
      input {
        width: 30px;
      }
    }

    span {
      color: rgb(221, 68, 68);
      background-color: rgb(243, 213, 213);
      font-size: 10px;
      padding: 2px;
      margin-left: 5px;
      border-radius: 4px;
    }
    .one {
      margin-left: 60px;
    }
  }
  .bot,
  .top {
    position: relative;
    text-align: right;
    background-color: rgb(223, 223, 223);
    margin: 0;
    // float: right;
  }
  .top {
    text-align: left;
  }
}
</style>